using SqlSugar;

/*
 * @author : xkdong@163.com
 * @date : 2024-3-15
 * @desc : 科室字典
 */
namespace YOUYOU.Models.Entities.DBModels
{
    /// <summary>
    /// 科室字典
    /// </summary>
    [SugarTable("sys_dept", TableDescription = "科室字典")]
    public class SysDept
    {
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "ID" ,IsIdentity = true, IsPrimaryKey = true)]
        public int ID{ get; set; }
        
        /// <summary>
        /// 科室代码
        /// </summary>
        [SugarColumn(ColumnName = "Code")]
        public string Code{ get; set; }
        
        /// <summary>
        /// 科室名称
        /// </summary>
        [SugarColumn(ColumnName = "Name")]
        public string? Name{ get; set; }
        
        /// <summary>
        /// 科室状态
        /// </summary>
        [SugarColumn(ColumnName = "Status")]
        public int? Status{ get; set; }
        
        /// <summary>
        /// 科室简称
        /// </summary>
        [SugarColumn(ColumnName = "DeptAlias")]
        public string? DeptAlias{ get; set; }
        
        /// <summary>
        /// 父级科室
        /// </summary>
        [SugarColumn(ColumnName = "PerentDept")]
        public string? PerentDept{ get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Memo")]
        public string? Memo{ get; set; }
        /// <summary>
        /// 0门诊1科室
        /// </summary>
        public string? DeptType { get; set; }

    }
}